package cn.gdcp.myapplication;

import android.content.Context;
import android.os.Binder;
import android.widget.Toast;

import java.text.SimpleDateFormat;
import java.util.Date;

public class Mybinder extends Binder {


public void showTime(Context context){
     SimpleDateFormat simpleDateFormat=new SimpleDateFormat("yyyy年MM月dd日 HH：mm：ss");
     Date date=new Date(System.currentTimeMillis());
    Toast.makeText(context, "现在时间是："+simpleDateFormat.format(date), Toast.LENGTH_SHORT).show();
}

public String reverseEnglish(String str){

    String arrs[]=str.split(" ");
    StringBuffer stringBufferResult=new StringBuffer();
    for (String arr : arrs)
    {
        StringBuffer stringBuffer1 = new StringBuffer(arr);
        stringBufferResult.append(stringBuffer1.reverse()+" ");
    }
    return stringBufferResult.toString();
}





}
